"use client";

import { memo, Suspense } from "react";
import type { ReactNode, FC } from "react";
import NavBar from "./c-views/navBar";
interface IProps {
  children?: ReactNode;
}

const Discover: FC<IProps> = (props) => {
  const { children } = props;
  return (
    <>
      <NavBar />
      <Suspense fallback={<div>Loading...</div>}>{children}</Suspense>
    </>
  );
};

export default memo(Discover);
